//
//  RecordBottomView.m
//  bitcoin
//
//  Created by caiyajun on 2018/5/28.
//  Copyright © 2018年 比特币. All rights reserved.
//

#import "RecordBottomView.h"
#import "RecordButton.h"
@interface RecordBottomView()
@property (weak, nonatomic) IBOutlet RecordButton *rinseBtn;
@property (weak, nonatomic) IBOutlet RecordButton *drawBtn;
@property (weak, nonatomic) IBOutlet RecordButton *tradeBtn;

@end
@implementation RecordBottomView
+ (instancetype)xib
{
    return [[NSBundle mainBundle] loadNibNamed:@"RecordBottomView" owner:self options:nil][0];
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    
    
    self.alpha = 1;
    self.frame = CGRectMake(0, ScreenHeight-49, ScreenWidth, 49);
    
    [self.rinseBtn setTitle:@"充币" forState:UIControlStateNormal];
    [self.rinseBtn setImage:[UIImage imageNamed:@"charge-icon"] forState:UIControlStateNormal];
    [self.drawBtn setTitle:@"提币" forState:UIControlStateNormal];
    [self.drawBtn setImage:[UIImage imageNamed:@"charge-icon 拷贝"] forState:UIControlStateNormal];
    [self.tradeBtn setTitle:@"交易" forState:UIControlStateNormal];
    [self.tradeBtn setImage:[UIImage imageNamed:@"transaction-icon"] forState:UIControlStateNormal];
    
}
- (IBAction)submitAction:(RecordButton *)sender {
    if (self.submitActionBlock) {
        self.submitActionBlock(sender.tag);
    }
}

@end
